﻿using EasyAdmin.Application.Contracts.Systems.Roles.Dtos;
using EasyAdmin.Application.Contracts.Systems.Users.Dtos;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Application.Contracts.Systems.Users
{
    public interface IUserAppService
    {
        /// <summary>
        /// 分页数据
        /// </summary>
        /// <returns></returns>
        Task<SqlSugarPagedList<UserOutput>> Page(UserPageCondition condition);

        /// <summary>
        /// 创建角色
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateUser(CreateUserInput input);

        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateUser(UpdateUserInput input);

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <returns></returns>
        Task DeleteUserByUserId(long roleId);

        /// <summary>
        /// 获得用户信息
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Task<UserOutput> GetUserByUserId(long roleId);

    }
}
